package cn.itcast.demo6.service.impl;

import cn.itcast.demo6.mapper.PurseMapper;
import cn.itcast.demo6.pojo.OrderList;
import cn.itcast.demo6.pojo.Purse;
import cn.itcast.demo6.service.PurseService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;


/**
 * ClassName: PurseServiceImpl
 * Package: com.itcast.demo5.service.impl
 * Description:
 *
 * @Author MLH
 * @Create 2023/4/18 9:21
 * @Version 1.0
 */
@Service
@Transactional
public class PurseServiceImpl implements PurseService {

    @Autowired
    private PurseMapper purseMapper;

    @Override
    public List<OrderList> getList(int page, int pers) {
        List<OrderList> orderList = purseMapper.getOrderList(page, pers);
        System.out.println("数据" + orderList);
        return orderList;
    }
}
